package com.lrkj.ureport.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 报表配置对象 tb_report_config
 *
 * @author yajun_ren
 * @date 2022-04-01
 */
@Data
public class ReportConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键标识 */
    private String id;

    /** 模板ID */
    @Excel(name = "模板ID")
    private String tempId;

    /** 报表分组ID */
    @Excel(name = "报表分组ID")
    private String reportGroupId;

    /** 排序序号 */
    @Excel(name = "排序序号")
    private Long orderNum;

    private List<ReportConfig> reportConfigs;

    //模板名称
    private String tmpName;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tempId", getTempId())
            .append("reportGroupId", getReportGroupId())
            .append("orderNum", getOrderNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
